/* 整个购物车的样式 */


.cart-items {
    padding: 20px 0;
    background-color: rgb(18, 103, 109);
}

/* 每个商品项的样式 */
.cart-sec {
    display: flex;
    padding: 10px;
    background-color: rgb(19, 165, 172);
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.cart-item-info {
    flex: 1;
    padding-left: 20px;
}

.cart-item-info h3 {
    margin: 5px 0;
}

.cart-item-info h3 a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.cart-item-info span {
    color: #555;
}

/* 商品图片 */
.cart-item .img-responsive {
    max-width: 120px;
    height: auto;
    border-radius: 8px;
}

/* 数量调整按钮 */
.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.quantity-controls .btn {
    width: 30px;
    height: 30px;
    text-align: center;
    padding: 0;
    font-size: 18px;
    border-radius: 50%;
}

.quantity-controls .quantity {
    font-size: 18px;
    color: #333;
    width: 30px;
    text-align: center;
}

/* 按钮样式 */
.quantity-controls a {
    display: inline-block;
    text-decoration: none;
    color: white;
    line-height: 30px;
    width: 30px;
    height: 30px;
    text-align: center;
    font-size: 18px;
    border-radius: 50%;
}

.quantity-controls .btn-info {
    background-color: #5bc0de;
}

.quantity-controls .btn-warning {
    background-color: #f0ad4e;
}

.cart-item-info .btn-danger {
    margin-top: 10px;
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.cart-item-info .btn-danger:hover {
    background-color: #c9302c;
}

/* 订单总金额区域 */
.cart-header h3 {
    font-size: 20px;
    font-weight: bold;
    color: rgb(0, 0, 0);
}

.cart-header .btn-success {
    background-color: rgb(0, 255, 0);
    border-color: rgb(128, 255, 128);
    color: rgb(0, 0, 0);
    text-decoration: none;
}

.cart-header .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* 页面标题样式 */
h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* 商品列表项的样式 */
.cart-header.col-md-6 {
    margin-bottom: 20px;
}

.cart-header.col-md-12 {
    margin-top: 20px;
}

/* 购物车中的分隔线 */
hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

/* 清除浮动 */
.clearfix {
    clear: both;
}
